package com.coincalf.service;

import com.baomidou.mybatisplus.service.IService;
import com.coincalf.dto.RandCode;
import com.coincalf.entity.Sms;
import com.coincalf.framework.http.Response;

/**
 * <p>
 * 短信信息 服务类
 * </p>
 *
 * @author qiang
 * @since 2018-05-12
 */
public interface SmsService extends IService<Sms> {

    /**
     * 发送短信
     *
     * @param sms
     */
    public Response sendTo(Sms sms);

    /**
     * 短信验证
     *
     * @param sms
     * @return
     */
    public Response verifySms(Sms sms);

    void sendEmail(String email, String code);
}
